package com.example.loginsystem.service.impl;

import com.example.loginsystem.bean.Role;
import com.example.loginsystem.dao.RoleDAO;
import com.example.loginsystem.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Cheung0
 * Created on 2021/11/29
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDAO roleDAO;

    @Override
    public Role getByUserName(String userName) {
        return roleDAO.getByUserName(userName);
    }

}
